/*
 * COMP6471 Project
 *  
 * This file is created by Yuan Tao (ewan.msn@gmail.com)
 * Licensed under GNU GPL v3
 * 
 * $Author: ewan.msn@gmail.com $
 * $Date: 2011-11-15 05:59:25 +0000 (Tue, 15 Nov 2011) $
 * $Rev: 53 $
 * $HeadURL: http://comp6471.googlecode.com/svn/Project6/src/kklib/LayoutTest.java $
 * 
 */
package kklib;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class LayoutTest {

	Layout layout = new Layout();
	
	@Before
	public void setUp() throws Exception {
		for (int i = 0; i < 16; i++) {
			// TODO: initialize a layout
		}
	}

	@Test
	public void testCheckSolution() {
		// TODO: 
	}

	@Test
	public void testSetCellValue() {
		assertEquals(1, layout.setCellValue("A92", 1, 1));
		assertEquals(1, layout.setCellValue("A1", 0, 1));
		assertEquals(1, layout.setCellValue("Z2", 1, 1));
		assertEquals(0, layout.setCellValue("A1", 1, 1));

		assertEquals(1, layout.setCellValue("A1", 1, 0));
	}

}
